package demo1;

public class Test {
    public static void main(String[] args) {
        Bird bird1 = new Bird(18,"niaoniao");
        System.out.println(bird1.name);
        System.out.println("--------------");
        Bird bird2 = new Bird();
        bird2.name = "xiaoxiao";
        System.out.println(bird2.name);
    }
}
